package com.cos.fegin.api;

import com.cos.vo.GoodsEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;


import java.util.List;
@FeignClient(name = "goods")
public interface GoodsService {
    /**
     * 列表
     */
    @RequestMapping("/goods/list")
    public List<GoodsEntity> list();


    /**
     * 信息
     */
    @RequestMapping("/goods/info")
    public GoodsEntity info(@RequestBody Integer id);

    /**
     * 保存
     */
    @RequestMapping("/save")
    public boolean save(@RequestBody GoodsEntity goods);

    /**
     * 修改
     */
    @RequestMapping("/update")
    public boolean update(@RequestBody GoodsEntity goods);

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public boolean delete(@RequestBody Integer[] ids);
}
